package com.learning.security.service;

import com.learning.security.controller.vo.RoleSaveReqVO;
import com.learning.security.dal.dataobject.AdminRoleDO;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

public interface AdminRoleService {
    boolean createRole(RoleSaveReqVO reqVO);

    Collection<? extends GrantedAuthority> buildGrantedAuthority(Long userId);

    AdminRoleDO getRoleByRoleId(Long roleId);
}
